package com.ruoyi.oos.self.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.oos.self.mapper.TagLimitdtlSelfMapper;
import com.ruoyi.oos.self.domain.TagLimitdtlSelf;
import com.ruoyi.oos.self.service.ITagLimitdtlSelfService;
import com.ruoyi.common.core.text.Convert;

/**
 * 限值明细Service业务层处理
 * 
 * @author wzy1
 * @date 2020-07-01
 */
@Service
public class TagLimitdtlSelfServiceImpl implements ITagLimitdtlSelfService 
{
    @Autowired
    private TagLimitdtlSelfMapper tagLimitdtlSelfMapper;

    /**
     * 查询限值明细
     * 
     * @param id 限值明细ID
     * @return 限值明细
     */
    @Override
    public TagLimitdtlSelf selectTagLimitdtlSelfById(Long id)
    {
        return tagLimitdtlSelfMapper.selectTagLimitdtlSelfById(id);
    }

    /**
     * 查询限值明细列表
     * 
     * @param tagLimitdtlSelf 限值明细
     * @return 限值明细
     */
    @Override
    public List<TagLimitdtlSelf> selectTagLimitdtlSelfList(TagLimitdtlSelf tagLimitdtlSelf)
    {
        return tagLimitdtlSelfMapper.selectTagLimitdtlSelfList(tagLimitdtlSelf);
    }

    /**
     * 新增限值明细
     * 
     * @param tagLimitdtlSelf 限值明细
     * @return 结果
     */
    @Override
    public int insertTagLimitdtlSelf(TagLimitdtlSelf tagLimitdtlSelf)
    {
        return tagLimitdtlSelfMapper.insertTagLimitdtlSelf(tagLimitdtlSelf);
    }

    /**
     * 修改限值明细
     * 
     * @param tagLimitdtlSelf 限值明细
     * @return 结果
     */
    @Override
    public int updateTagLimitdtlSelf(TagLimitdtlSelf tagLimitdtlSelf)
    {
        return tagLimitdtlSelfMapper.updateTagLimitdtlSelf(tagLimitdtlSelf);
    }

    /**
     * 删除限值明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTagLimitdtlSelfByIds(String ids)
    {
        return tagLimitdtlSelfMapper.deleteTagLimitdtlSelfByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除限值明细信息
     * 
     * @param id 限值明细ID
     * @return 结果
     */
    public int deleteTagLimitdtlSelfById(Long id)
    {
        return tagLimitdtlSelfMapper.deleteTagLimitdtlSelfById(id);
    }
}
